//
//  UIScrollView+Refresh.h
//  YunDongGym
//
//  Created by lqq on 2018/7/25.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MJRefresh.h>

@interface UIScrollView (Refresh)
/**
 *  添加下拉刷新
 *
 *  @param block 回调
 */
- (void)addHeaderWithRefreshingBlock:(void(^)())block;
- (void)addHeaderWithRefreshingTarget:(id)target refreshingAction:(SEL)action;

/**
 *  开始下拉刷新
 */
-(void)beginHeaderRefreshing;

/**
 *  结束下拉刷新
 */
- (void)endHeaderRefreshing;

/**
 是否隐藏刷新头
 */
- (void)hideHeader:(BOOL)hidden;

/**
 *  添加上拉刷新
 *
 *  @param block 回调
 */
- (void)addFooterWithRefreshingBlock:(void(^)())block;
- (void)addFooterWithRefreshingTarget:(id)target refreshingAction:(SEL)action;

/**
 *  结束上拉刷新
 */
- (void)endFooterRefreshing;

/**
 *  没有更多数据
 */
- (void)endRefreshingWithNoMoreData;

/**
 是否隐藏刷新尾
 
 */
- (void)hideFooter:(BOOL)hidden;

@end
